let num = 1;
let str = '';
let flag = true;
let un = undefined;
let obj = {};
let nu = null;
let arr = [];
let fn = function () {};
let date = new Date();

// console.log(str instanceof String); // false
// console.log(num instanceof Number); // false
// console.log(flag instanceof Boolean); // false

// console.log(un instanceof undefined);
// console.log(nu instanceof null);

// console.log(obj instanceof Object); // true
// console.log(arr instanceof Array); // true
// console.log(fn instanceof Function); // true
// console.log(date instanceof Date); // true

console.log(arr instanceof Array); // true
console.log(arr instanceof Object); // true
console.log(Array instanceof Object); // true

var array = [1, 2, 3]; // new Array()

// array.__proto__ = Array.prototype;
// Array.prototype.__proto__ = Object.prototype;
// console.log(Object.prototype.__proto__); // null
